package com.situ.mall.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.situ.mall.entity.Order;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

	List<Order> selectByUserId(Integer userId);

	int getTotalCount();

	List<Order> selectByPage(@Param(value = "offset")int offset, @Param(value = "limit")Integer limit);

	Order selectByOrderNo(Long orderNo);
}